package day03;

import java.util.Arrays;

public class ShuffleArray {
	public static void main(String[] args) {
		int[] x = { 2, 8, 10, 12, 33 };
		shuffle(x);
		System.out.println(Arrays.toString(x));
	}
	public static void shuffle(int[] k)
	{
		int i,temp;
		int j=0;
		int length=k.length;
		for(i=0;i<length;i++)
		{
			j=(int) (i*Math.random());
			temp=k[i];
			k[i]=k[j];
			k[j]=temp;
		}
	}
}
